﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WAD.WEB.AppCode.WxPay.Pay;

namespace WAD.WEB.wxpay
{
    public partial class pay_wx : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            String openId = "oBp7EwFfZ0yQGJcksdeYMXxRzMqE";
            String tradeNo = "10000" + DateTime.Now.ToString("yyyyMMddHHmmss");

            tradeNo = "6611455759266907";
            openId = "oBp7EwFk5lFWOAicRKHFY9eoGcRo";

            Response.AddHeader("Content-Type", "text/plain");
            //Response.Write("----------------->支付结果<----------------\n");
            //Response.Write(PayToWx.Pay(openId, tradeNo, 100));
            Response.Write("\n----------------->查询结果<----------------\n");
            Response.Write(PayToWx.GetTransferInfo(tradeNo));
            Response.End();


        }
    }
}